import _axios from '@/tool/http.js'
// 获取省
export const getProvince = () => {
    let options = {
        url: api.crm + '/geographyProvince/queryProvinceList?language=1&countryCode=CN',
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}
// 获取市
export const getCity = (code) => {
    let options = {
        url: api.crm + '/geographyCity/queryCityList?language=1&countryCode=CN&provinceCode=' + code,
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}
// 获取区
export const getDistrict = (provinceCode, cityCode) => {
    let options = {
        url: api.crm + `/geographyArea/queryAreaList?language=1&countryCode=CN&provinceCode=${provinceCode}&cityCode=${cityCode}`,
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}
// 获取门店
export const getShop = (areaCode) => {
    let options = {
        url: api.crm + `/geographyShop?areaCode=${areaCode}`,
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}
// 跟进事由
export const getShebangs = () => {
    let options = {
        url: api.base + `/systemDictionary/getByType/followReason`,
        method: 'POST',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}
// 跟进结果
export const getFollowReasult = () => {
    let options = {
        url: api.base + `/systemDictionary/getByType/followResult`,
        method: 'POST',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}
// 未到店原因
export const getFollowNotoCause = () => {
    let options = {
        url: api.base + `/systemDictionary/getByType/notoCause`,
        method: 'POST',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options);
}
